package com.fingard.dsp.bank.reqrespobj.sendsmscode;

import java.util.HashMap;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.dsp.bank.reqrespobj.sendsmscode.detail.RetAtsSmsCodeDetail;
import com.fingard.xml.XmlTextWriter;

//发送短信验证码响应对象
public class RetAtsSendSmsCode extends RetAtsBase {

    public RetAtsSendSmsCode(ReqRespHeader p_header){
        retHeader = p_header;
        retXmlWriter = new XmlTextWriter();//用于输出返回ATS的XML报文
    }

    public void writeRetDetail(RetAtsSmsCodeDetail p_detail){
        writeStart();//写返回ATS的统一头部信息
        retDetail = p_detail;

        p_detail.writeToXml(retXmlWriter);

        retXmlWriter.writeEndElement();
        writeEnd();//写结束
    }

    private RetAtsSmsCodeDetail retDetail;
    public HashMap<String,String> getRetAtsHashMap(){
        return retDetail.writeToHash();
    }
}

